import request from '@/utils/request'

/* 工单统计接口 */
export const userWork = (start, end) => request.get(`/api/task-service/task/taskReportInfo/${start}/${end}`)

/* 销售统计-订单总数 */
export const orderCount = (start, end) => request.get('/api/order-service/report/orderCount', {
  params: {
    start,
    end
  }
})

/* 销售统计-销售额 */
export const orderAmount = (start, end) => request.get('/api/order-service/report/orderAmount', {
  params: {
    start,
    end
  }
})

/* 商品热榜 */

export const skuTop = (start, end, topValue) => request.get(`/api/order-service/report/skuTop/${topValue}/${start}/${end}`)

/* 销售数据 */
export const amountCollect = (start, end, collectType) => request.get(`/api/order-service/report/amountCollect/${collectType}/${start}/${end}`)
/* 销售额分布 */
export const regionCollect = (start, end) => request.get(`/api/order-service/report/regionCollect/${start}/${end}`)
/* 合作商点位数Top5 */
export const nodeCollect = () => request.get('/api/vm-service/node/nodeCollect')
/* 获取点位总数 */
export const vmCount = () => request.get('/api/vm-service/node/count')
/* 获取合作商总数 */
export const userCount = () => request.get('/api/user-service/partner/count')
